package com.toobulkeh.search;
//package com.toobulkeh.search;

import java.net.MalformedURLException;
import java.net.URL;

import javax.swing.ImageIcon;

public class Image {

	private URL url, thumb;
	//private ImageIcon img, thumbImg;
	
	public Image(String url, String thumb) throws MalformedURLException {
		this.url = new URL(url);
		this.thumb = new URL(thumb);
	}
	
	public URL getURL() {
		return url;
	}
	
	public URL getThumbURL() {
		return thumb;
	}
	
	public ImageIcon getIcon() {
		return new ImageIcon(url);
	}
	
	public ImageIcon getThumbIcon() {
		return new ImageIcon(thumb);
	}
	
	public String toString() {
		return url.toString();
	}
	
}
